package com.lianxueda.drawing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lianxueda.drawing.domain.pojo.Schedules;
import com.lianxueda.drawing.domain.vo.SchedulesVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SchedulesMapper extends BaseMapper<Schedules> {
    void deleteAllById(@Param("ids")  List<Integer> ids);

    void saveAll(@Param("schedules")  List<Schedules> schedules);
    List<SchedulesVO> getCourseNameByStudentId(Integer id);

    List<Schedules> findByCourseId(Integer courseId);

    @Select("SELECT * FROM schedules WHERE id = #{schedulesId}")
    Schedules findBySchedulesId(Integer schedulesId);
}
